Operation void
sleep (long millis, int nanos), in Class Thread
Documentation
* Causes the currently executing thread to sleep (cease execution)
* for the specified number of milliseconds plus the specified number
* of nanoseconds. The thread does not lose ownership of any monitors.
*
* @param millis the length of time to sleep in milliseconds.
* @param nanos 0-999999 additional nanoseconds to sleep.
* @exception IllegalArgumentException if the value of millis is negative
* or the value of nanos is not in the range 0-999999.
* @exception InterruptedException if another thread has interrupted
* this thread.
* @see java.lang.Object#notify()
* @since JDK1.0
Concurrency | Sequential | Export Control | PublicAccess |
Property Settings
Java
Static | True | Abstract | False |
Final | False | Native | False |
Synchronized | False | | |